package com.kimi.abyss.rbac.domain;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * no-op
 *
 * @author kimi
 * @date 2021/7/22
 */
@Data
@NoArgsConstructor
@Table("t_rbac_user_role")
public class UserRole implements Serializable {

    @Id
    private Integer id;

    private Integer userId;

    private Integer roleId;

    private LocalDateTime createdDate;

    private String createdBy;

    public UserRole(Integer userId,Integer roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

}
